const router = require('koa-router')();
const upload = require('../util/upload');
const appConfig = require('../app.config.js');
router.post('/', upload.single('file'), async (ctx, next) =>{
    const {filename, path} = ctx.req.file;
    ctx.body = `${appConfig.uploadPath}/${filename}`

})

module.exports = router;